package cn.mux.jdk8.designpatter.decorator;

/**
 * @Title:  Decorator.java   
 * @Package cn.mux.jdk8.designpatter.decorator   
 * @Description:    定义被装饰者   
 * @author: 陈成雪     
 * @date:   2017年9月30日 下午3:07:36   
 * @version V1.0
 */
public abstract class Decorator implements Human{
	
	private Human human;
	public Decorator(Human human) {
		System.out.println("init decorator");
		this.human = human;
	}
	
	 public void wearClothes() {  
        human.wearClothes();  
     }  
  
     public void walkToWhere() {  
        human.walkToWhere();  
     } 
}
